<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" data-rule="required" data-source="clothmaking_customer/index" data-field="customer_name" class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required" data-source="clothmaking_product/index" data-field="name" class="form-control selectpage" name="row[product_id]" type="text" value="{$row.product_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inspection_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-inspection_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[inspection_date]" type="text" value="{$row.inspection_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inspection_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-inspection_type" data-rule="required" class="form-control selectpicker" name="row[inspection_type]">
                <option value="">请选择检验类型</option>
                <option value="第一次做板" {in name="row.inspection_type" value="第一次做板"}selected{/in}>第一次做板</option>
                <option value="第二次做板" {in name="row.inspection_type" value="第二次做板"}selected{/in}>第二次做板</option>
                <option value="第三次做板" {in name="row.inspection_type" value="第三次做板"}selected{/in}>第三次做板</option>
                <option value="量产" {in name="row.inspection_type" value="量产"}selected{/in}>量产</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storage_conditions')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-storage_conditions" class="form-control" name="row[storage_conditions]" type="text" value="{$row.storage_conditions|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inspection_items')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-inspection_items" class="form-control" name="row[inspection_items]" type="text" value="{$row.inspection_items|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dimensional_checks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dimensional_checks" class="form-control" name="row[dimensional_checks]" type="text" value="{$row.dimensional_checks|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Performance_tests')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-performance_tests" class="form-control" name="row[performance_tests]" type="text" value="{$row.performance_tests|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
